GBML manual / Cutscenes

cutscene_current

The cutscene currently playing, or nothing if none is - useful for telling two possibly-simultaneous triggers apart (`if (cutscene_current() == cs_intro) { ... }`) without keeping your own separate flag.

Syntax

cutscene_current() -> cutscene

Returns

cutscene

Description

The cutscene currently playing, or nothing if none is.

Telling scenes apart

cutscene_active() only answers "is anything playing" - this answers "which one." Useful when more than one trigger in a project could plausibly be starting a cutscene around the same time, and something needs to react differently depending on which scene is actually running, without keeping a separate flag of its own just to remember which cutscene_start call fired.

Compare it against nothing the same way any other asset or ref<object> value is (cutscene_current() != nothing), or against a specific cutscene by name, exactly like the example below.

Example

var showing_intro = cutscene_current() == cs_doc_intro;

Reacts only while cs_doc_intro specifically is the one playing - a different cutscene running at the same moment (if the project ever has two triggers active close together) leaves this false.

On the GBA

Compare it against nothing the same way any ref<object>/asset value is (`!= nothing`), or against a specific cutscene value by name.

See also: cutscene_activecutscene_start